//
//  DRRootController.m
//  DelicateGo
//
//  Created by 王咻咻 on 16/2/14.
//  Copyright © 2016年 @raydun. All rights reserved.
//

#import "DRRootController.h"
#import "DRHomeController.h"
#import "DRMallController.h"
#import "DRMineController.h"
#import "DRForumController.h"

#import "DRMainTabBar.h"
@interface DRRootController ()

@end

@implementation DRRootController

- (void)viewDidLoad {
    [super viewDidLoad];
    DRHomeController *homeVc = [[DRHomeController alloc] init];
    DRMallController *mallVc = [[DRMallController alloc] init];
    DRMineController *mainVc = [[DRMineController alloc] init];
    DRForumController *forumVc = [[DRForumController alloc] init];
    [self addChildViewController:homeVc];
    [self addChildViewController:mallVc];
    [self addChildViewController:mainVc];
    [self addChildViewController:forumVc];
    
    DRMainTabBar *tabBar = [DRMainTabBar tabBarWithRect:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 64)];
    [self.tabBar addSubview:tabBar];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
